import request from '@/utils/request'

// 查询内容通知列表
export function listContentPush(query) {
  return request({
    url: '/system/contentPush/list',
    method: 'get',
    params: query
  })
}

// 导出内容通知列表
export function exportContentPush(query) {
  return request({
    url: '/system/contentPush/export',
    method: 'get',
    params: query
  })
}

// 新增内容通知
export function addContentPush(data) {
  return request({
    url: '/system/contentPush/add',
    method: 'post',
    data: data
  })
}

// 修改内容通知
export function updateContentPush(data) {
  return request({
    url: '/system/contentPush/update',
    method: 'put',
    data: data
  })
}

// 删除内容通知
export function delContentPush(query) {
  return request({
    url: '/system/contentPush/delete',
    method: 'delete',
    params: query
  })
}

// 推送消息
export function jpushToSomeUser(query) {
  return request({
    url: '/zhuoyue/jpush/jpushToSomeUser',
    method: 'get',
    params: query
  })
}
